package per.chenxin.tools.foundation;

import java.sql.ResultSetMetaData;
import java.sql.SQLException;

public class MetaData {

    String columnClassName;

    int columnDisplaySize;

    String columnLabel;

    String columnName;

    int columnType;

    String columnTypeName;

    public MetaData(ResultSetMetaData resultSetMetaData, int column) throws SQLException {

        columnClassName = resultSetMetaData.getColumnClassName(column);
        columnDisplaySize = resultSetMetaData.getColumnDisplaySize(column);
        columnLabel = resultSetMetaData.getColumnLabel(column);
        columnName = resultSetMetaData.getColumnName(column);
        columnType = resultSetMetaData.getColumnType(column);
        columnTypeName = resultSetMetaData.getColumnTypeName(column);
    }

}
